// 云函数入口文件
const rq = require('request-promise')

cloud.init()
// var AipImageClassifyClient = require("baidu-aip-sdk").imageClassify;

// // 设置APPID/AK/SK
// var APP_ID = "24959244";
// var API_KEY = "sANfkHUTYUMy8RMK084AZxQS";
// var SECRET_KEY = "9iI7hxsDWxm3FWgPIA4LTz3sEGqXisEj";

// 新建一个对象，建议只保存一个对象调用服务接口

// 云函数入口函数
exports.main = async (event, context) => {
  let apiKey = 'sANfkHUTYUMy8RMK084AZxQS',
    grantType = 'client_credentials',
    secretKey = '9iI7hxsDWxm3FWgPIA4LTz3sEGqXisEj',
    url = `https://aip.baidubce.com/oauth/2.0/token`

}